package com.dongdong.bookstore.module.ams.viewmodel;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * @author 林泉梁
 * @version 1.0
 */
@Data
public class ArticleAddParam {

    @NotEmpty(message = "文章标题不能为空")
    @ApiModelProperty(value = "文章标题", required = true)
    private String title;

    @ApiModelProperty(value = "文章内容")
    private String content;


    @ApiModelProperty(value = "文章描述")
    private String description;

    @ApiModelProperty(value = "文章封面url")
    private String img;

    @NotEmpty(message = "发布管理员不能为空")
    @ApiModelProperty(value = "发布管理员ID", required = true)
    private Long adminId;


}
